import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'





Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',    //路由懒加载
      component: () => import(/* webpackChunkName: "home" */ '@/page/Home')
    },
    {
      path: '/about',
      name: 'about',
      component: ()=> import(/* webpackChunkName: "about" */ '@/page/About')
    }
  ]
})
